{config_load file="lang/$language/lang_$language.conf" section="checkout_new_address"}
{config_load file="lang/$language/lang_$language.conf" section="create_account"}
<p>{#text_new_address#}</p>
<div class="ar inputRequirement">{#text_must#}</div>
<fieldset class="account">
	<legend><strong>{#title_personal#}</strong></legend>
	{if $INPUT_MALE}
		<div data-role="fieldcontain">
			<label for="gender_m">{#text_male#}</label>
			{$INPUT_MALE|replace:'name="gender"':'name="gender" id="gender_m"'}<br />
			<label for="gender_f">{#text_female#}</label>
			{$INPUT_FEMALE|replace:'name="gender"':'name="gender" id="gender_f"'}
		</div>
	{/if}
	{if $INPUT_TITLE}
		<div data-role="fieldcontain">
			<label for="title">{#text_title#}</label>
			{$INPUT_TITLE|replace:'name="title"':'name="title" id="title"'}
		</div>
	{/if}
	{if $INPUT_FIRSTNAME}
		<div data-role="fieldcontain">
			<label for="firstname">{#text_firstname#}</label>
			{$INPUT_FIRSTNAME|replace:'name="firstname"':'name="firstname" id="firstname"'}
		</div>
	{/if}
	{if $INPUT_LASTNAME}
		<div data-role="fieldcontain">
			<label for="lastname">{#text_lastname#}</label>
			{$INPUT_LASTNAME|replace:'name="lastname"':'name="lastname" id="lastname"'}
		</div>
	{/if}
</fieldset>

{if $INPUT_COMPANY}
	<fieldset class="account">
		<legend><strong>{#title_company#}</strong></legend>
		<div data-role="fieldcontain">
			<label for="company">{#text_company#}</label>
			{$INPUT_COMPANY|replace:'name="company"':'name="company" id="company"'}
		</div>
	</fieldset>
{/if}

<fieldset class="account">
	<legend><strong>{#title_address#}</strong></legend>
	{if $INPUT_STREET}
		<div data-role="fieldcontain">
			<label for="street_address">{#text_street#}</label>
			{$INPUT_STREET|replace:'name="street_address"':'name="street_address" id="street_address"'}
		</div>
	{/if}
	{if $INPUT_STREET_NUM}
		<div data-role="fieldcontain">
			<label for="street_address_num">{#text_street_num#}</label>
			{$INPUT_STREET_NUM|replace:'name="street_address_num"':'name="street_address_num" id="street_address_num"'}
		</div>
	{/if}
	{if $INPUT_SUBURB}
		<div data-role="fieldcontain">
			<label for="suburb">{#text_suburb#}</label>
			{$INPUT_SUBURB|replace:'name="suburb"':'name="suburb" id="suburb"'}
		</div>
	{/if}
	{if $INPUT_CITY}
		<div data-role="fieldcontain">
			<label for="city">{#text_city#}</label>
			{$INPUT_CITY|replace:'name="city"':'name="city" id="city"'}
		</div>
	{/if}
	{if $INPUT_CODE}
		<div data-role="fieldcontain">
			<label for="postcode">{#text_code#}</label>
			{$INPUT_CODE|replace:'name="postcode"':'name="postcode" id="postcode"'}
		</div>
	{/if}
	{if $INPUT_COUNTRY}
		<div data-role="fieldcontain">
			<label for="country">{#text_country#}</label>
			{$INPUT_COUNTRY|replace:'name="country"':'name="country" id="country"'}
		</div>
	{/if}
	{if $INPUT_STATE}
		<div data-role="fieldcontain">
			<label for="state">{#text_state#}</label>
			{$INPUT_STATE|replace:'name="state"':'name="state" id="state"'}
			<dd id="state">{$INPUT_STATE}</dd>
		</dl>
	{/if}
</fieldset>